package com.example.demo.entity;

import org.babyfish.jimmer.sql.*;
import org.jetbrains.annotations.Nullable;
import java.time.LocalDateTime;

@Entity
@Table(name = "t_user")
public interface User {
    // 定义主键
    @Id
    // 注意主键不能为空，所以用 long 而不是 Long
    long id();

    @Nullable
    String username();

    @Nullable
    Integer age();

    @Nullable
    LocalDateTime birthday();

    @Key
    @Nullable
    String idCode();
}
